package com.al.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.al.service.PageService;
import com.al.util.PageUtil;

@WebServlet("/FindAllUserList")
public class AllUserController extends HttpServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		//通过 sql 得到总条数，得到页数，第一次查询时显示的数据（把含有默认值的实体赋值给 sql)
		//创建工具实体（含有初始数据）
		PageUtil pageUtil = new PageUtil();
		//创建业务对象
		PageService pageService = new PageService();
		//获取总记录数
		int rc = pageService.findRecordCount();
	}
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doGet(req,resp);
	}
}
